package ch06;
class Tv { 
     String color;
     boolean power;
     int channel;

     void power() { power = !power; }
     void channelUp() { ++channel; }
     void channelDown() { --channel; }
}

class _01_TvTest { 
      public static void main(String args[]) { 
            Tv t;
            t = new Tv();
            t.channel = 7;
            t.channelDown();
            System.out.println("channel: " + t.channel); // channel: 6
      } 
} 